package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_dict_type")
@Table(appliesTo = "mb_dict_type", comment = "字典类型信息表")
public class DictType extends BaseModel implements Serializable {

	private static final long serialVersionUID = 6588292347232692842L;

	/**
	 * 字典类型ID
	 */
	@ApiModelProperty(value = "字典类型ID")
	@Column(name = "dict_type_id", columnDefinition = "varchar(50)  NOT NULL COMMENT '字典类型ID'")
	private String dictTypeId;

	/**
	 * 字典类型编码
	 */
	@ApiModelProperty(value = "字典类型编码")
	@Column(name = "dict_type_code", columnDefinition = "varchar(50)  NOT NULL COMMENT '字典类型编码'")
	private String dictTypeCode;

	/**
	 * 字典类型名称
	 */
	@ApiModelProperty(value = "字典类型名称")
	@Column(name = "dict_type_name", columnDefinition = "varchar(50)  NOT NULL COMMENT '字典类型名称'")
	private String dictTypeName;

	@ApiModelProperty(value = "状态")
	@Column(name = "status", columnDefinition = "varchar(1) NOT NULL DEFAULT '1'  COMMENT '状态'")
	private String status;

}
